/*
 * Main.fx
 *
 * Created on 06.09.2009, 23:16:24
 */
//Пэкмэн очаровательно получился
package javafx179labs.gromova.lab1;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
import javafx.scene.shape.*;
import javafx.scene.effect.light.*;
import javafx.scene.transform.*;


/**
 * @author asus
 */

Stage {
    title: "Home work #1"
    width: 600
    height: 300
    scene: Scene {
        content: [
            Rectangle {
                    transforms: Rotate { angle: 4}
            x:10 y:50
            width:100 height:75
            arcWidth:20 arcHeight:20
            fill: Color.BROWN
            effect: Reflection { fraction: 0.6 topOffset: 2}
          }
               Ellipse {
                centerX: 500  centerY: 120
                radiusX: 80  radiusY: 50
                fill: Color.YELLOW
                }
                Circle {
                  centerX : 450 centerY : 90 radius : 20
                  fill: Color.WHITE
                }
                Circle {
                  centerX : 500 centerY : 120 radius : 10
                  fill: Color.WHITE
                }
                Circle {
                  centerX : 490 centerY : 60 radius : 16
                  fill: Color.WHITE
                   }
                Circle {
                  centerX : 540 centerY : 75 radius : 30
                  fill: Color.WHITE
                }
                Circle {
                  centerX : 480 centerY : 150 radius : 19
                  fill: Color.WHITE
                }
                Circle {
                  centerX : 530 centerY : 150 radius : 25
                  fill: Color.WHITE
                }


          Circle {
                  transforms: Shear { x: 0.15 y: 0 }
                  centerX : 175 centerY : 90 radius : 40
                  fill: Color.CORAL
                  effect: GaussianBlur {}
                }
          Circle {
                 transforms: Shear { x: 0.15 y: 0 }
                 centerX: 160 centerY: 80 radius: 5
                 effect: GaussianBlur {radius:2}
          }
          Circle {
                  transforms: Shear { x: 0.15 y: 0 }
                  centerX: 180 centerY: 80 radius: 5
                  effect: GaussianBlur {radius:2}
                 }
          Path { 
                transforms: Shear { x: 0.15 y: 0 }
                 elements: [
                 MoveTo { x: 155 y: 100 },
                    QuadCurveTo {
                        controlX: 170.0  controlY: 120.0
                        x: 185.0  y: 100.0
                }
                ]

              effect: GaussianBlur {radius:2}
        }
          Ellipse {
                transforms: Transform.rotate(-2,0,0)
                centerX: 340  centerY: 200
                radiusX: 65  radiusY: 25
                stroke: Color.ORCHID
                      strokeWidth: 5
                fill: Color.RED

                effect: Lighting {
                light: PointLight {
                    x: -250 y: -250 z: 60
                    }
                    surfaceScale: 7
         }
 }
       Polygon {
                points: [
                 400.0,  50.0,
                 200.0, 30.0,
                 400.0, 10.0
                ]
                fill: Color.CHOCOLATE
                effect: Bloom {threshold: 5} //Threshold must be in the range [0,1]
                }

               Path {
                    elements: [
                     MoveTo { x: 400    y: 10},
                     LineTo { x: 400  y: 175},
                   
                             ]
              effect: MotionBlur { radius: 10 angle: -30 }
              stroke: Color.PURPLE
         }
         Arc {
                 transforms: Rotate { angle: 4}
            centerX: 40  centerY: 80
            radiusX: 25  radiusY: 25
            startAngle: 45  length: 270
            type: ArcType.ROUND
            fill: Color.YELLOW
}
       Arc {
               transforms: Rotate { angle: 4}
            centerX: 40  centerY: 66
            radiusX: 4  radiusY: 4
            startAngle: 215  length: 270
            type: ArcType.ROUND
            fill: Color.BROWN
            }
        Circle {
                transforms: Rotate { angle: 4}
                centerX: 55 centerY: 80 radius: 3 fill: Color.AQUA
                }
        Circle {
                transforms: Rotate { angle: 4}
                centerX: 65 centerY: 80 radius: 3 fill: Color.AQUA
                }
        Circle {
                transforms: Rotate { angle: 4}
                centerX: 75 centerY: 80 radius: 3 fill: Color.AQUA
                }
        

        ]
    }
}